3f075cf03b70c381c3bf806365a9ad172e18c2b4,build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/util/spec/SpecsHelper.java,SpecsHelper,buildTargetPathToFiles,#File#FileSpec#,117

Before Change



    private Multimap<String, File> buildTargetPathToFiles(File workspace, FileSpec uploadFile) throws IOException {
        boolean isFlat = BooleanUtils.toBoolean(uploadFile.getFlat());
        boolean isRecursive = BooleanUtils.toBoolean(uploadFile.getRecursive());
        boolean isRegexp = BooleanUtils.toBoolean(uploadFile.getRegexp());
        String pattern = uploadFile.getPattern();
        String targetPath = getLocalPath(uploadFile.getTarget());

After Change


    private Multimap<String, File> buildTargetPathToFiles(File workspace, FileSpec uploadFile) throws IOException {
        // The default value is true so it should be true in any case the string not matches "false"
        boolean isFlat = !"false".equalsIgnoreCase(uploadFile.getFlat());
        boolean isRecursive = !"false".equalsIgnoreCase(uploadFile.getRecursive());
        boolean isRegexp = BooleanUtils.toBoolean(uploadFile.getRegexp());
        String pattern = uploadFile.getPattern();
        String targetPath = getLocalPath(uploadFile.getTarget());